home *** CD-ROM | disk | FTP | other *** search
- diff -c fileutils-2.0/lib/getdate.y fileutils-2.0-st/lib/getdate.y
- *** fileutils-2.0/lib/getdate.y Sun May 19 18:37:06 1991
- --- fileutils-2.0-st/lib/getdate.y Thu Jun 13 01:03:45 1991
- ***************
- *** 22,33 ****
- #include <time.h>
- #else
- #include <sys/types.h>
- ! #if defined(USG)
- /*
- ** Uncomment the next line if you need to do a tzset() call to set the
- ** timezone, and don't have ftime(). Some SystemV releases, I think.
- */
- ! /*#define NEED_TZSET */
- struct timeb {
- time_t time; /* Seconds since the epoch */
- unsigned short millitm; /* Field not used */
- --- 22,37 ----
- #include <time.h>
- #else
- #include <sys/types.h>
- ! #if defined(USG) || defined(atarist) /* (sjk)++ */
- /*
- ** Uncomment the next line if you need to do a tzset() call to set the
- ** timezone, and don't have ftime(). Some SystemV releases, I think.
- */
- ! #if defined(atarist) /* (sjk)++ */
- ! #define NEED_TZSET
- ! extern time_t _timezone;
- ! #endif
- !
- struct timeb {
- time_t time; /* Seconds since the epoch */
- unsigned short millitm; /* Field not used */
- ***************
- *** 801,807 ****
- --- 805,817 ----
- (void)time(&ftz.time);
- /* Set the timezone global. */
- tzset();
- +
- + #if !defined(atarist) /* (sjk)++ */
- ftz.timezone = (int) timezone / 60;
- + #else
- + ftz.timezone = (int) _timezone / 60;
- + #endif
- +
- #else
- (void)ftime(&ftz);
- #endif /* defined(NEED_TZSET) */
-